<template>
    <div ref="print">
        <table border="1"  width="1200" height="600" >
    <tr>
        <td colspan="8">个人基本信息</td>
    </tr>
    <tr>
        <td>姓名</td>
        <td>{{msg.uName}}</td>
        <td>手机号</td>
        <td>{{msg.pNum}}</td>
    </tr>
    <tr>
        <td>驾驶证号码</td>
        <td>{{msg.dINum}}</td>
        <td>身份证号码</td>
        <td>{{msg.idNum}}</td>

    </tr>
</table>
  </div>
</template>
<script>
  import cookies from 'js-cookie'
  import axios from 'axios'
  export default {
    data(){
      return{
        msg:{
          dINum: "",
          id: "",
          idNum: "",
          pNum: "",
          password: "",
          uName: "",
        }
      }
    },
    mounted() {
      this.getInfo()
    },
    methods:{
      async getInfo(){
        let mydata={
          id:cookies.get("id")
        }
        console.log("id si"+mydata.id)
        axios.post('/owner/get',mydata).then((res)=>{
          console.log(res)
          this.msg=res.data.data[0]
          console.log(this.msg)
        })
      }
    }

  }
</script>
